home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 2 of 2).iso / cheats / lvlinfo / fuelcen.h < prev    next >
Text File  |  1995-03-16  |  1KB  |  41 lines

  1. #define MAX_NUM_FUELCENS    50
  2.  
  3. #define SEGMENT_IS_NOTHING            0
  4. #define SEGMENT_IS_FUELCEN            1
  5. #define SEGMENT_IS_REPAIRCEN        2
  6. #define SEGMENT_IS_CONTROLCEN        3
  7. #define SEGMENT_IS_ROBOTMAKER        4
  8. #define MAX_CENTER_TYPES            5
  9.  
  10. typedef struct control_center_triggers {
  11.     short        num_links;
  12.     short     seg[MAX_WALLS_PER_LINK];
  13.     short        side[MAX_WALLS_PER_LINK];
  14. } control_center_triggers;
  15.  
  16. // An array of pointers to segments with fuel centers.
  17. typedef struct FuelCenter {
  18.     int            Type;
  19.     int            segnum;
  20.     byte            Flag;
  21.     byte            Enabled;
  22.     byte            Lives;            //    Number of times this can be enabled.
  23.     byte            dum1;
  24.     fix             Capacity;
  25.     fix            MaxCapacity;
  26.     fix            Timer;
  27.     fix            Disable_time;        //    Time until center disabled.
  28.     vms_vector    Center;
  29. } FuelCenter;
  30.  
  31. // The max number of robot centers per mine.
  32. #define MAX_ROBOT_CENTERS  20    
  33.  
  34. typedef struct matcen_info {
  35.     int            robot_flags;        // Up to 32 different robots
  36.     fix            hit_points;            // How hard it is to destroy this particular matcen
  37.     fix            interval;            // Interval between materialogrifizations
  38.     short            segnum;                // Segment this is attached to.
  39.     short            fuelcen_num;        // Index in fuelcen array.
  40. } matcen_info;
  41.